GtkTreeModelFilter: Fix _iter_previous() when iter points at 2nd node
authorRui Matos <tiagomatos@gmail.com>
Sat, 14 Jul 2012 00:34:26 +0000 (02:34 +0200)
committerKristian Rietveld <kris@loopnest.org>
Tue, 17 Jul 2012 08:50:48 +0000 (10:50 +0200)
commiteaddf70a430d8cc169374803313c0ff88eca2e1e
treea24ea36348fffbe248f945c71efc11c5bdb2a8f5
parent96c19108fc6bc033e9b1075233b35ed4042de391
GtkTreeModelFilter: Fix _iter_previous() when iter points at 2nd node

GSequence iterators point at the position between two elements so an
iterator pointing at the N tree model node is actually between the N-1
and N sequence elements. This means that asking for the previous
sequence iterator first and then checking if it is the begin iterator
would yeld true for an iterator pointing at the 2nd tree model node
and make us return FALSE mistakenly.

https://bugzilla.gnome.org/show_bug.cgi?id=679910
gtk/gtktreemodelfilter.c